/*
 * @# PostsMentionedServiceImpl.java 2011-12-19 下午03:15:32
 * 
 * Copyright (C) 2010 - 2011 广州羿安信息科技有限公司
 * Guangzhou ianswer information technology co. ltd.
 * 
 * All rights reserved!
 */
package com.ianswer.px.posts.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ianswer.common.orm.PublicDao;
import com.ianswer.px.posts.entity.PostMentioned;
import com.ianswer.px.posts.service.PostMentionedService;

/**
 * @author alvin hwang
 */
@Service("postMentionedService")
public class PostMentionedServiceImpl implements PostMentionedService {

	@Resource(name = "publicDao")
	private PublicDao publicDao;

	@Override
	public Long insert(PostMentioned postMentioned) {
		return (Long) publicDao.insert("postsMentioned.insert", postMentioned);
	}

	@Override
	public void delete(Long postsId) {
		publicDao.delete("postsMentioned.delete", postsId);
	}

}
